<?php 
require_once(dirname(__FILE__)."/config.php");
if(empty($dopost)) $dopost = "";
if($dopost=="save"){
	$pwd = md5($password);
	$jointime = time();
	$logintime = time();
	$joinip = GetIP();
	$loginip = GetIP();
	$dsql = new RsSql(false);
	$dsql->SetQuery("INSERT INTO `#@__member` (`userid` ,`pwd` ,`uname` ,`sex` ,`rank`  ,`email` , `lang` ,`company`,`mobile`,`tel`,`fax`, `address` ,`matt` ,`face` ,`jointime` ,`joinip` ,`logintime` ,`loginip` )
   VALUES ('$userid','$pwd','$uname','$sex','$rank',
   '$email', 'gb2312' ,'$company', '$mobile', '$tel', '$fax', '$address','0','','$jointime','$joinip','$logintime','$loginip'); ");
	$dsql->Execute();
	$dsql->Close();
	ShowMsg("成功添加一个用户!","member_main.php");
	exit();
}

require_once(dirname(__FILE__)."/templets/member_add.htm");

?>